package com.gitease.quickhub.repository;

import com.gitease.quickhub.model.Repository;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

@org.springframework.stereotype.Repository
public interface RepositoryRepository extends JpaRepository<Repository, Long> {
    List<Repository> findByOwnerId(Long ownerId);
    Repository findByOwnerIdAndName(Long ownerId, String name);
}